package com.nikkerball.calculator;

import com.nikkerball.Choice;

/**
 * TODO: Document class
 *
 * @author marius (created on 2010-02-18)
 */
public enum Operator implements Choice {

    Add("org.nikkerball.opertor.add", "+"), Subtract("org.nikkerball.opertor.subtract", "-"), Multiply(
            "org.nikkerball.opertor.multiply", "*"), Devide("org.nikkerball.opertor.divide", "/"), Power(
            "org.nikkerball.opertor.power", "^"), Percent("org.nikkerball.opertor.percent", "%");

    // ----- instance fields -----

    private String key;

    private String symbol;

    // ----- constructors -----

    Operator(String key, String symbol) {
        this.key = key;
        this.symbol = symbol;
    }

    // ----- public methods -----

    public String getKey() {
        return key;
    }

    public String getSymbol() {
        return symbol;
    }
}
